<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>计算10的阶乘</title>
</head>
<body>
	<script>
		function fun(n){
			if(n==1){
				return 1;
			}else{
				return n*fun(n-1)
			}
		}
		console.log(fun(10))
	</script>
</body>
</html>